package me.idashu.attg.service;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import me.idashu.attg.domain.CollectEntity;
import me.idashu.attg.persistence.CollectMapper;

@Service
public class CollectService {
	@Autowired
	private CollectMapper collectMapper;
	
	public void insertCollect(CollectEntity collectEntity){
		collectMapper.insertCollect(collectEntity);
	}
	
	public void deleteCollect(CollectEntity collectEntity){
		collectMapper.deleteCollect(collectEntity);
	}
	
	public int getCollect(Map<String, Object> map){
		return collectMapper.getCollect(map);
	}
}
